<script src="https://cdn.staticfile.org/jquery/3.4.0/jquery.min.js"></script>
<script src="https://cdn.staticfile.org/jquery-cookie/1.4.1/jquery.cookie.min.js"></script>
<script>
	(() => {
        // 获取登录凭证
        let userId = $.cookie('userId');
        // 登录状态下跳转到用户业务页, 没有登录跳转到登录页进行登录
        window.location.assign(userId === undefined? './login.html': './user.html');
    })();
</script>
